package com.gitee.cui.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-07 14:07
 **/
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT", fallback = PaymentFallbackService.class)
public interface PaymentHystrixService {

	@GetMapping(value = "/payment/hystrix/ok/{id}")
	String paymentInfoOk(@PathVariable("id") Long id );

	@GetMapping(value = "/payment/hystrix/timeout/{id}")
	String paymentInfoTimeout(@PathVariable("id") Long id);
}
